Skip to content

Conversation

@prestwich
Copy link
Member

@prestwich prestwich commented Jan 6, 2026

SimCache now exposes methods to filter items by the best VALID transaction

@prestwich prestwich marked this pull request as ready for review January 6, 2026 17:02
@prestwich prestwich requested a review from a team as a code owner January 6, 2026 17:02
Copy link
Member Author

prestwich commented Jan 6, 2026

@prestwich prestwich force-pushed the prestwich/decode-before-drive branch from a8944d4 to 4818f22 Compare January 7, 2026 15:03
@prestwich prestwich force-pushed the prestwich/best-valid branch from cdaa8aa to ac4331c Compare January 7, 2026 15:03
@prestwich prestwich force-pushed the prestwich/decode-before-drive branch from 4818f22 to dc448ae Compare January 7, 2026 15:05
@prestwich prestwich force-pushed the prestwich/best-valid branch from ac4331c to 35e8391 Compare January 7, 2026 15:05
@prestwich prestwich changed the base branch from prestwich/decode-before-drive to graphite-base/161 January 7, 2026 16:11
@prestwich prestwich force-pushed the prestwich/best-valid branch from 8b53d65 to ad9a677 Compare January 7, 2026 16:11
@prestwich prestwich changed the base branch from graphite-base/161 to main January 7, 2026 16:11
@prestwich prestwich requested a review from Evalir January 8, 2026 16:42
@prestwich prestwich requested a review from Evalir January 12, 2026 17:03
Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last set of nits

@prestwich prestwich force-pushed the prestwich/best-valid branch from 768f737 to 236cf11 Compare January 15, 2026 12:58
@prestwich prestwich requested a review from Evalir January 15, 2026 12:58
Comment on lines +161 to +162
// Peek to perform the balance check for the first tx
if let Some(first) = items.peek() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this only checks the first transaction. if the bundle contains multiple senders, shouldn't we check the first tx balance for each?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read the comment

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had already read it. I wanted stricter validation here, but I see how making it more strict can discard valid bundles

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// We do not check balances after
// the first tx, as they may have changed due to prior txs in the
// bundle.

is there a way we can rewrite this to be more clear?

Comment on lines +161 to +162
// Peek to perform the balance check for the first tx
if let Some(first) = items.peek() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had already read it. I wanted stricter validation here, but I see how making it more strict can discard valid bundles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants